﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Kanban.IBLL
{
    public interface IBaseService<T> where T : class, new()
    {
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id">id</param>
        /// <returns></returns>
        Task<bool> DeleteAsync(int id);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ids">ids</param>
        /// <returns></returns>
        Task<bool> DeleteAsync(string ids);

        /// <summary>
        /// 查询返回第一个
        /// </summary>
        /// <param name="id">id</param>
        /// <returns></returns>
        Task<T> GetModelAsync(int id);

    }
}
